def gen_func():
    html = yield "http://www.test.com"
    print(html)
    yield 1
    yield 2
    yield 3
    return "leo"


if __name__ == '__main__':
    gen = gen_func()
    # url = next(gen)
    url = gen.send(None)
    html = "leo"
    print(gen.send(html))
